package com.sptpc.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.sptpc.domain.Product;
import com.sptpc.persistence.ProductMapper;

@Service
public class ProductService {
	
	//com.sptpc.persistence包下面
	@Autowired
	private ProductMapper productMapper;
	
	public List<Product> getHotProduct() {
		//
		return productMapper.querAllHotProduct();
	}

	public List<Product> getNewProduct() {
		// TODO Auto-generated method stub
		return productMapper.querAllNewProduct();
	}

}
